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_27234625_15778.cpp:31:10: error: 'maxn' was not declared in this scope
 int head[maxn],X[2005],Y[2005],dist1[maxn],dist2[maxn];
          ^
0_0_27234625_15778.cpp:31:38: error: 'maxn' was not declared in this scope
 int head[maxn],X[2005],Y[2005],dist1[maxn],dist2[maxn];
                                      ^
0_0_27234625_15778.cpp:31:50: error: 'maxn' was not declared in this scope
 int head[maxn],X[2005],Y[2005],dist1[maxn],dist2[maxn];
                                                  ^
0_0_27234625_15778.cpp:32:9: error: 'maxn' was not declared in this scope
 int scc[maxn];
         ^
0_0_27234625_15778.cpp:33:9: error: 'maxn' was not declared in this scope
 int vis[maxn];
         ^
0_0_27234625_15778.cpp:34:12: error: 'maxn' was not declared in this scope
 int stack1[maxn];
            ^
0_0_27234625_15778.cpp:35:12: error: 'maxn' was not declared in this scope
 int stack2[maxn];
            ^
0_0_27234625_15778.cpp:39:5: error: 'MAXN' was not declared in this scope
 } g[MAXN];
     ^
0_0_27234625_15778.cpp: In function 'void init()':
0_0_27234625_15778.cpp:43:12: error: 'head' was not declared in this scope
     memset(head,0,sizeof(head));
            ^
0_0_27234625_15778.cpp:44:12: error: 'vis' was not declared in this scope
     memset(vis,0,sizeof(vis));
            ^
0_0_27234625_15778.cpp:45:12: error: 'scc' was not declared in this scope
     memset(scc,0,sizeof(scc));
            ^
0_0_27234625_15778.cpp:46:5: error: 'stack1' was not declared in this scope
     stack1[0] = stack2[0] = num = 0;
     ^
0_0_27234625_15778.cpp:46:17: error: 'stack2' was not declared in this scope
     stack1[0] = stack2[0] = num = 0;
                 ^
0_0_27234625_15778.cpp: In function 'void addedge(int, int)':
0_0_27234625_15778.cpp:52:5: error: 'g' was not declared in this scope
     g[num].v = v;
     ^
0_0_27234625_15778.cpp:53:19: error: 'head' was not declared in this scope
     g[num].next = head[u];
                   ^
0_0_27234625_15778.cpp: In function 'void dfs(int, int&, int&)':
0_0_27234625_15778.cpp:68:5: error: 'vis' was not declared in this scope
     vis[cur] = ++sig;
     ^
0_0_27234625_15778.cpp:69:5: error: 'stack1' was not declared in this scope
     stack1[++stack1[0]] = cur;
     ^
0_0_27234625_15778.cpp:70:5: error: 'stack2' was not declared in this scope
     stack2[++stack2[0]] = cur;
     ^
0_0_27234625_15778.cpp:71:17: error: 'head' was not declared in this scope
     for(int i = head[cur]; i; i = g[i].next)
                 ^
0_0_27234625_15778.cpp:71:35: error: 'g' was not declared in this scope
     for(int i = head[cur]; i; i = g[i].next)
                                   ^
0_0_27234625_15778.cpp:76:17: error: 'scc' was not declared in this scope
             if(!scc[g[i].v])
                 ^
0_0_27234625_15778.cpp:89:13: error: 'scc' was not declared in this scope
             scc[stack1[stack1[0]]] = cnt;
             ^
0_0_27234625_15778.cpp: In function 'void Twosat()':
0_0_27234625_15778.cpp:106:13: error: 'vis' was not declared in this scope
         if(!vis[i]) dfs(i,sig,cnt);
             ^
0_0_27234625_15778.cpp: In function 'void solve()':
0_0_27234625_15778.cpp:139:20: error: 'dist1' was not declared in this scope
                 if(dist1[i]+dist1[j]>mid) addedge(i,j+n);
                    ^
0_0_27234625_15778.cpp:140:20: error: 'dist2' was not declared in this scope
                 if(dist2[i]+dist2[j]>mid) addedge(i+n,j);
                    ^
0_0_27234625_15778.cpp:141:20: error: 'dist1' was not declared in this scope
                 if(dist1[i]+dist2[j]+tot>mid) addedge(i,j);
                    ^
0_0_27234625_15778.cpp:141:29: error: 'dist2' was not declared in this scope
                 if(dist1[i]+dist2[j]+tot>mid) addedge(i,j);
                             ^
0_0_27234625_15778.cpp:142:20: error: 'dist2' was not declared in this scope
                 if(dist2[i]+dist1[j]+tot>mid) addedge(i+n,j+n);
                    ^
0_0_27234625_15778.cpp:142:29: error: 'dist1' was not declared in this scope
                 if(dist2[i]+dist1[j]+tot>mid) addedge(i+n,j+n);
                             ^
0_0_27234625_15778.cpp: In function 'int main()':
0_0_27234625_15778.cpp:164:13: error: 'dist1' was not declared in this scope
             dist1[i]=caldist(x,y,x1,y1);
             ^
0_0_27234625_15778.cpp:165:13: error: 'dist2' was not declared in this scope
             dist2[i]=caldist(x,y,x2,y2);
             ^


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-29 23:28:59, Gzip enabled