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_35897143_15783.cpp:3:7: error: 'll' does not name a type
 const ll N = 2e5+10;
       ^
0_0_35897143_15783.cpp:4:1: error: 'll' does not name a type
 ll h[N],e[N],w[N],ne[N],idx;
 ^
0_0_35897143_15783.cpp:5:1: error: 'll' does not name a type
 ll d[N],r[N],fa[N][25];
 ^
0_0_35897143_15783.cpp:6:1: error: 'll' does not name a type
 ll n,m,q;
 ^
0_0_35897143_15783.cpp:7:8: error: 'N' was not declared in this scope
 bool v[N];
        ^
0_0_35897143_15783.cpp:8:8: error: 'll' was not declared in this scope
 vector<ll>z[N];
        ^
0_0_35897143_15783.cpp:8:10: error: template argument 1 is invalid
 vector<ll>z[N];
          ^
0_0_35897143_15783.cpp:8:10: error: template argument 2 is invalid
0_0_35897143_15783.cpp:8:13: error: 'N' was not declared in this scope
 vector<ll>z[N];
             ^
0_0_35897143_15783.cpp:8:15: error: invalid type in declaration before ';' token
 vector<ll>z[N];
               ^
0_0_35897143_15783.cpp:9:10: error: variable or field 'add' declared void
 void add(ll a,ll b,ll c)
          ^
0_0_35897143_15783.cpp:9:10: error: 'll' was not declared in this scope
0_0_35897143_15783.cpp:9:15: error: 'll' was not declared in this scope
 void add(ll a,ll b,ll c)
               ^
0_0_35897143_15783.cpp:9:20: error: 'll' was not declared in this scope
 void add(ll a,ll b,ll c)
                    ^
0_0_35897143_15783.cpp: In function 'void bfs()':
0_0_35897143_15783.cpp:15:11: error: 'd' was not declared in this scope
    memset(d,0,sizeof(d));
           ^
0_0_35897143_15783.cpp:16:10: error: 'll' was not declared in this scope
    queue<ll>q;
          ^
0_0_35897143_15783.cpp:16:12: error: template argument 1 is invalid
    queue<ll>q;
            ^
0_0_35897143_15783.cpp:16:12: error: template argument 2 is invalid
0_0_35897143_15783.cpp:16:14: error: invalid type in declaration before ';' token
    queue<ll>q;
              ^
0_0_35897143_15783.cpp:17:6: error: request for member 'push' in 'q', which is of non-class type 'int'
    q.push(1);
      ^
0_0_35897143_15783.cpp:19:4: error: 'r' was not declared in this scope
    r[1]=0;
    ^
0_0_35897143_15783.cpp:20:13: error: request for member 'empty' in 'q', which is of non-class type 'int'
    while(!q.empty())
             ^
0_0_35897143_15783.cpp:22:9: error: expected ';' before 'x'
      ll x=q.front();
         ^
0_0_35897143_15783.cpp:23:8: error: request for member 'pop' in 'q', which is of non-class type 'int'
      q.pop();
        ^
0_0_35897143_15783.cpp:24:13: error: expected ';' before 'i'
      for(ll i=h[x];~i;i=ne[i])
             ^
0_0_35897143_15783.cpp:24:21: error: 'i' was not declared in this scope
      for(ll i=h[x];~i;i=ne[i])
                     ^
0_0_35897143_15783.cpp:24:25: error: 'ne' was not declared in this scope
      for(ll i=h[x];~i;i=ne[i])
                         ^
0_0_35897143_15783.cpp:26:11: error: expected ';' before 'y'
        ll y=e[i];
           ^
0_0_35897143_15783.cpp:27:14: error: 'y' was not declared in this scope
        if(!d[y])
              ^
0_0_35897143_15783.cpp:29:17: error: 'x' was not declared in this scope
          d[y]=d[x]+1;
                 ^
0_0_35897143_15783.cpp:30:20: error: 'w' was not declared in this scope
          r[y]=r[x]+w[i];
                    ^
0_0_35897143_15783.cpp:31:12: error: request for member 'push' in 'q', which is of non-class type 'int'
          q.push(y);
            ^
0_0_35897143_15783.cpp:32:10: error: 'fa' was not declared in this scope
          fa[y][0]=x;
          ^
0_0_35897143_15783.cpp:33:17: error: expected ';' before 'k'
          for(ll k=1;k<=20;k++)
                 ^
0_0_35897143_15783.cpp:33:21: error: 'k' was not declared in this scope
          for(ll k=1;k<=20;k++)
                     ^
0_0_35897143_15783.cpp: At global scope:
0_0_35897143_15783.cpp:41:1: error: 'll' does not name a type
 ll lca(ll a,ll b)
 ^
0_0_35897143_15783.cpp: In function 'int main()':
0_0_35897143_15783.cpp:64:5: error: 'll' was not declared in this scope
     ll T;
     ^
0_0_35897143_15783.cpp:65:19: error: 'T' was not declared in this scope
     scanf("%lld",&T);
                   ^
0_0_35897143_15783.cpp:68:14: error: 'h' was not declared in this scope
       memset(h,-1,sizeof(h));
              ^
0_0_35897143_15783.cpp:69:14: error: 'fa' was not declared in this scope
       memset(fa,0,sizeof(fa));
              ^
0_0_35897143_15783.cpp:70:7: error: 'idx' was not declared in this scope
       idx=0;
       ^
0_0_35897143_15783.cpp:71:25: error: 'n' was not declared in this scope
       scanf("%lld%lld",&n,&m);
                         ^
0_0_35897143_15783.cpp:71:28: error: 'm' was not declared in this scope
       scanf("%lld%lld",&n,&m);
                            ^
0_0_35897143_15783.cpp:72:14: error: expected ';' before 'i'
       for(ll i=1;i<n;i++)
              ^
0_0_35897143_15783.cpp:72:18: error: 'i' was not declared in this scope
       for(ll i=1;i<n;i++)
                  ^
0_0_35897143_15783.cpp:74:13: error: expected ';' before 'a'
          ll a,b,c;
             ^
0_0_35897143_15783.cpp:75:32: error: 'a' was not declared in this scope
          scanf("%lld%lld%lld",&a,&b,&c);
                                ^
0_0_35897143_15783.cpp:75:35: error: 'b' was not declared in this scope
          scanf("%lld%lld%lld",&a,&b,&c);
                                   ^
0_0_35897143_15783.cpp:75:38: error: 'c' was not declared in this scope
          scanf("%lld%lld%lld",&a,&b,&c);
                                      ^
0_0_35897143_15783.cpp:76:19: error: 'add' was not declared in this scope
          add(a,b,c);
                   ^
0_0_35897143_15783.cpp:80:14: error: expected ';' before 'i'
       for(ll i=1;i<=m;i++)
              ^
0_0_35897143_15783.cpp:80:18: error: 'i' was not declared in this scope
       for(ll i=1;i<=m;i++)
                  ^
0_0_35897143_15783.cpp:82:13: error: expected ';' before 'k'
          ll k;
             ^
0_0_35897143_15783.cpp:83:24: error: 'k' was not declared in this scope
          scanf("%lld",&k);
                        ^
0_0_35897143_15783.cpp:84:17: error: 'v' was not declared in this scope
          memset(v,0,sizeof(v));
                 ^
0_0_35897143_15783.cpp:85:17: error: expected ';' before 'j'
          for(ll j=1;j<=k;j++)
                 ^
0_0_35897143_15783.cpp:85:21: error: 'j' was not declared in this scope
          for(ll j=1;j<=k;j++)
                     ^
0_0_35897143_15783.cpp:87:16: error: expected ';' before 'x'
             ll x;
                ^
0_0_35897143_15783.cpp:88:27: error: 'x' was not declared in this scope
             scanf("%lld",&x);
                           ^
0_0_35897143_15783.cpp:92:15: error: 'z' was not declared in this scope
               z[i].push_back(x);
               ^
0_0_35897143_15783.cpp:96:21: error: 'q' was not declared in this scope
       scanf("%lld",&q);
                     ^
0_0_35897143_15783.cpp:99:12: error: expected ';' before 'a'
         ll a,b;
            ^
0_0_35897143_15783.cpp:100:27: error: 'a' was not declared in this scope
         scanf("%lld%lld",&a,&b);
                           ^
0_0_35897143_15783.cpp:100:30: error: 'b' was not declared in this scope
         scanf("%lld%lld",&a,&b);
                              ^
0_0_35897143_15783.cpp:101:12: error: expected ';' before 'ans'
         ll ans=1e18;
            ^
0_0_35897143_15783.cpp:102:16: error: expected ';' before 'i'
         for(ll i=0;i<z[a].size();i++)
                ^
0_0_35897143_15783.cpp:102:20: error: 'i' was not declared in this scope
         for(ll i=0;i<z[a].size();i++)
                    ^
0_0_35897143_15783.cpp:102:22: error: 'z' was not declared in this scope
         for(ll i=0;i<z[a].size();i++)
                      ^
0_0_35897143_15783.cpp:104:18: error: expected ';' before 'j'
           for(ll j=0;j<z[b].size();j++)
                  ^
0_0_35897143_15783.cpp:104:22: error: 'j' was not declared in this scope
           for(ll j=0;j<z[b].size();j++)
                      ^
0_0_35897143_15783.cpp:106:16: error: expected ';' before 'x'
             ll x=z[a][i],y=z[b][j];
                ^
0_0_35897143_15783.cpp:107:16: error: expected ';' before 'p'
             ll p=lca(x,y);
                ^
0_0_35897143_15783.cpp:109:13: error: 'ans' was not declared in this scope
             ans=min(ans,r[x]+r[y]-2*r[p]);
             ^
0_0_35897143_15783.cpp:109:25: error: 'r' was not declared in this scope
             ans=min(ans,r[x]+r[y]-2*r[p]);
                         ^
0_0_35897143_15783.cpp:109:27: error: 'x' was not declared in this scope
             ans=min(ans,r[x]+r[y]-2*r[p]);
                           ^
0_0_35897143_15783.cpp:109:32: error: 'y' was not declared in this scope
             ans=min(ans,r[x]+r[y]-2*r[p]);
                                ^
0_0_35897143_15783.cpp:109:39: error: 'p' was not declared in this scope
             ans=min(ans,r[x]+r[y]-2*r[p]);
                                       ^
0_0_35897143_15783.cpp:112:25: error: 'ans' was not declared in this scope
         printf("%lld\n",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-26 03:40:10, Gzip enabled