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_26689737_25918.cpp:5:9: error: 'll' does not name a type
 typedef ll long long
         ^
0_0_26689737_25918.cpp:8:9: error: 'maxn' was not declared in this scope
 int vis[maxn];
         ^
0_0_26689737_25918.cpp:9:9: error: 'maxn' was not declared in this scope
 int fat[maxn];
         ^
0_0_26689737_25918.cpp:10:9: error: 'maxn' was not declared in this scope
 int tar[maxn];
         ^
0_0_26689737_25918.cpp:11:9: error: 'maxn' was not declared in this scope
 int dis[maxn];
         ^
0_0_26689737_25918.cpp:16:8: error: 'maxn' was not declared in this scope
 node e[maxn];
        ^
0_0_26689737_25918.cpp:17:17: error: 'maxn' was not declared in this scope
 vector<int>head[maxn*2];
                 ^
0_0_26689737_25918.cpp:22:7: error: 'maxn' was not declared in this scope
 que d[maxn];
       ^
0_0_26689737_25918.cpp:23:18: error: 'maxn' was not declared in this scope
 vector<int>query[maxn*2];
                  ^
0_0_26689737_25918.cpp: In function 'void init()':
0_0_26689737_25918.cpp:28:20: error: 'maxn' was not declared in this scope
     for(int i=0;i<(maxn<<1);i++) head[i].clear();
                    ^
0_0_26689737_25918.cpp:28:34: error: 'head' was not declared in this scope
     for(int i=0;i<(maxn<<1);i++) head[i].clear();
                                  ^
0_0_26689737_25918.cpp:29:19: error: 'maxn' was not declared in this scope
     for(int i=0;i<maxn;i++) fat[i]=i;
                   ^
0_0_26689737_25918.cpp:29:29: error: 'fat' was not declared in this scope
     for(int i=0;i<maxn;i++) fat[i]=i;
                             ^
0_0_26689737_25918.cpp:30:12: error: 'vis' was not declared in this scope
     memset(vis,0,sizeof(vis));
            ^
0_0_26689737_25918.cpp:31:12: error: 'tar' was not declared in this scope
     memset(tar,0,sizeof(tar));
            ^
0_0_26689737_25918.cpp:32:12: error: 'dis' was not declared in this scope
     memset(dis,0,sizeof(dis));
            ^
0_0_26689737_25918.cpp: In function 'void add(int, int, int)':
0_0_26689737_25918.cpp:36:2: error: 'e' was not declared in this scope
  e[cnt].v=b;
  ^
0_0_26689737_25918.cpp:38:2: error: 'head' was not declared in this scope
  head[a].push_back(cnt++);
  ^
0_0_26689737_25918.cpp: In function 'int fd(int)':
0_0_26689737_25918.cpp:47:11: error: 'fat' was not declared in this scope
     while(fat[r]!=r)
           ^
0_0_26689737_25918.cpp:52:11: error: 'fat' was not declared in this scope
         j=fat[i];
           ^
0_0_26689737_25918.cpp: In function 'void join(int, int)':
0_0_26689737_25918.cpp:63:9: error: 'fat' was not declared in this scope
         fat[fu]=fv;
         ^
0_0_26689737_25918.cpp: In function 'void dfs_tree(int)':
0_0_26689737_25918.cpp:69:5: error: 'vis' was not declared in this scope
     vis[s]=1;
     ^
0_0_26689737_25918.cpp:70:19: error: 'head' was not declared in this scope
     for(int i=0;i<head[s].size();i++)
                   ^
0_0_26689737_25918.cpp:72:17: error: 'e' was not declared in this scope
         if(!vis[e[head[s][i]].v])
                 ^
0_0_26689737_25918.cpp:74:13: error: 'dis' was not declared in this scope
             dis[e[head[s][i]].v]=dis[s]+e[head[s][i]].w;
             ^
0_0_26689737_25918.cpp:78:13: error: 'tar' was not declared in this scope
             tar[e[head[s][i]].v]=1;
             ^
0_0_26689737_25918.cpp:81:19: error: 'query' was not declared in this scope
     for(int i=0;i<query[s].size();i++)
                   ^
0_0_26689737_25918.cpp:83:12: error: 'tar' was not declared in this scope
         if(tar[d[query[s][i]].v])
            ^
0_0_26689737_25918.cpp:83:16: error: 'd' was not declared in this scope
         if(tar[d[query[s][i]].v])
                ^
0_0_26689737_25918.cpp: In function 'void dfs()':
0_0_26689737_25918.cpp:98:13: error: 'vis' was not declared in this scope
         if(!vis[i])
             ^
0_0_26689737_25918.cpp: In function 'int main()':
0_0_26689737_25918.cpp:131:13: error: 'd' was not declared in this scope
             d[num].u=a,d[num].v=b;
             ^
0_0_26689737_25918.cpp:132:13: error: 'query' was not declared in this scope
             query[a].push_back(num++);
             ^
0_0_26689737_25918.cpp:142:23: error: 'dis' was not declared in this scope
                 int k=dis[d[i].u] + dis[d[i].v] - 2*dis[d[i].ans];
                       ^
0_0_26689737_25918.cpp:142:27: error: 'd' was not declared in this scope
                 int k=dis[d[i].u] + dis[d[i].v] - 2*dis[d[i].ans];
                           ^


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-16 17:47:59, Gzip enabled