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_22441032_1105.cpp:11:5: error: 'LL' does not name a type
     LL c,s;
     ^
0_0_22441032_1105.cpp:13:8: error: 'N' was not declared in this scope
 line L[N];
        ^
0_0_22441032_1105.cpp: In function 'void addedge(int, int, int)':
0_0_22441032_1105.cpp:15:5: error: 'bs' was not declared in this scope
     bs++;v[bs]=y;w[bs]=z;nxt[bs]=point[x];point[x]=bs;
     ^
0_0_22441032_1105.cpp:15:10: error: 'v' was not declared in this scope
     bs++;v[bs]=y;w[bs]=z;nxt[bs]=point[x];point[x]=bs;
          ^
0_0_22441032_1105.cpp:15:18: error: 'w' was not declared in this scope
     bs++;v[bs]=y;w[bs]=z;nxt[bs]=point[x];point[x]=bs;
                  ^
0_0_22441032_1105.cpp:15:26: error: 'nxt' was not declared in this scope
     bs++;v[bs]=y;w[bs]=z;nxt[bs]=point[x];point[x]=bs;
                          ^
0_0_22441032_1105.cpp:15:34: error: 'point' was not declared in this scope
     bs++;v[bs]=y;w[bs]=z;nxt[bs]=point[x];point[x]=bs;
                                  ^
0_0_22441032_1105.cpp: At global scope:
0_0_22441032_1105.cpp:18:26: error: 'intl' has not been declared
 void modify(int &x,int y,intl,int r,int x){
                          ^
0_0_22441032_1105.cpp:18:41: error: conflicting declaration 'int x'
 void modify(int &x,int y,intl,int r,int x){
                                         ^
0_0_22441032_1105.cpp:18:18: note: previous declaration as 'int& x'
 void modify(int &x,int y,intl,int r,int x){
                  ^
0_0_22441032_1105.cpp: In function 'void initseg(int&, int, int, const int&)':
0_0_22441032_1105.cpp:22:11: error: 'tot' was not declared in this scope
     now=++tot;
           ^
0_0_22441032_1105.cpp:23:16: error: 'key' was not declared in this scope
     if (l==r) {key[now]=x;lc=rc=0;return;}
                ^
0_0_22441032_1105.cpp:23:27: error: 'lc' was not declared in this scope
     if (l==r) {key[now]=x;lc=rc=0;return;}
                           ^
0_0_22441032_1105.cpp:23:30: error: 'rc' was not declared in this scope
     if (l==r) {key[now]=x;lc=rc=0;return;}
                              ^
0_0_22441032_1105.cpp:25:13: error: 'lc' was not declared in this scope
     initseg(lc,l,mid,x);
             ^
0_0_22441032_1105.cpp:26:5: error: 'key' was not declared in this scope
     key[x]=;
     ^
0_0_22441032_1105.cpp:26:12: error: expected primary-expression before ';' token
     key[x]=;
            ^
0_0_22441032_1105.cpp: In function 'void dfs(int)':
0_0_22441032_1105.cpp:29:5: error: 'vis' was not declared in this scope
     vis[x]=1;
     ^
0_0_22441032_1105.cpp:31:9: error: 'f' was not declared in this scope
         f[x]=query(rt[fa[x]],s[x])+sqrr(s[x]);
         ^
0_0_22441032_1105.cpp:31:20: error: 'rt' was not declared in this scope
         f[x]=query(rt[fa[x]],s[x])+sqrr(s[x]);
                    ^
0_0_22441032_1105.cpp:31:23: error: 'fa' was not declared in this scope
         f[x]=query(rt[fa[x]],s[x])+sqrr(s[x]);
                       ^
0_0_22441032_1105.cpp:31:30: error: 's' was not declared in this scope
         f[x]=query(rt[fa[x]],s[x])+sqrr(s[x]);
                              ^
0_0_22441032_1105.cpp:31:34: error: 'query' was not declared in this scope
         f[x]=query(rt[fa[x]],s[x])+sqrr(s[x]);
                                  ^
0_0_22441032_1105.cpp:31:45: error: 'sqrr' was not declared in this scope
         f[x]=query(rt[fa[x]],s[x])+sqrr(s[x]);
                                             ^
0_0_22441032_1105.cpp:32:9: error: 'L' was not declared in this scope
         L[x]=ML(f[x],s[x]);
         ^
0_0_22441032_1105.cpp:32:26: error: 'ML' was not declared in this scope
         L[x]=ML(f[x],s[x]);
                          ^
0_0_22441032_1105.cpp:33:34: error: 'n' was not declared in this scope
         modify(rt[x],rt[fa[x]],1,n,x);
                                  ^
0_0_22441032_1105.cpp:35:9: error: 'f' was not declared in this scope
         f[x]=0;fa[x]=0;
         ^
0_0_22441032_1105.cpp:35:16: error: 'fa' was not declared in this scope
         f[x]=0;fa[x]=0;
                ^
0_0_22441032_1105.cpp:36:9: error: 'L' was not declared in this scope
         L[x]=ML(f[x],s[x]);
         ^
0_0_22441032_1105.cpp:36:22: error: 's' was not declared in this scope
         L[x]=ML(f[x],s[x]);
                      ^
0_0_22441032_1105.cpp:36:26: error: 'ML' was not declared in this scope
         L[x]=ML(f[x],s[x]);
                          ^
0_0_22441032_1105.cpp:37:17: error: 'rt' was not declared in this scope
         initseg(rt[x],1,n,x);
                 ^
0_0_22441032_1105.cpp:37:25: error: 'n' was not declared in this scope
         initseg(rt[x],1,n,x);
                         ^
0_0_22441032_1105.cpp:39:10: error: 'p' was not declared in this scope
     for (p=point[x];p;p=nxt[p]) if (!vis[v[p]]){
          ^
0_0_22441032_1105.cpp:39:12: error: 'point' was not declared in this scope
     for (p=point[x];p;p=nxt[p]) if (!vis[v[p]]){
            ^
0_0_22441032_1105.cpp:39:25: error: 'nxt' was not declared in this scope
     for (p=point[x];p;p=nxt[p]) if (!vis[v[p]]){
                         ^
0_0_22441032_1105.cpp:39:42: error: 'v' was not declared in this scope
     for (p=point[x];p;p=nxt[p]) if (!vis[v[p]]){
                                          ^
0_0_22441032_1105.cpp:40:9: error: 's' was not declared in this scope
         s[v[p]]=s[x]+w[p];fa[v[p]]=x;
         ^
0_0_22441032_1105.cpp:40:22: error: 'w' was not declared in this scope
         s[v[p]]=s[x]+w[p];fa[v[p]]=x;
                      ^
0_0_22441032_1105.cpp:40:27: error: 'fa' was not declared in this scope
         s[v[p]]=s[x]+w[p];fa[v[p]]=x;
                           ^
0_0_22441032_1105.cpp: In function 'int main()':
0_0_22441032_1105.cpp:48:26: error: 'P' was not declared in this scope
         scanf("%d%d",&n,&P);
                          ^
0_0_22441032_1105.cpp:51:35: error: 'z' was not declared in this scope
             scanf("%d%d%d",&x,&y,&z);
                                   ^
0_0_22441032_1105.cpp:54:9: error: 'L' was not declared in this scope
         L[0]=ML(,);
         ^
0_0_22441032_1105.cpp:54:17: error: expected primary-expression before ',' token
         L[0]=ML(,);
                 ^
0_0_22441032_1105.cpp:54:18: error: expected primary-expression before ')' token
         L[0]=ML(,);
                  ^
0_0_22441032_1105.cpp:54:18: error: 'ML' was not declared in this scope
0_0_22441032_1105.cpp:56:9: error: 'LL' was not declared in this scope
         LL ans=0;
         ^
0_0_22441032_1105.cpp:57:28: error: 'ans' was not declared in this scope
         for (i=1;i<=n;i++) ans=max(ans,f[i]);
                            ^
0_0_22441032_1105.cpp:57:40: error: 'f' was not declared in this scope
         for (i=1;i<=n;i++) ans=max(ans,f[i]);
                                        ^
0_0_22441032_1105.cpp:58:23: error: 'ans' was not declared in this scope
         printf("%d\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-10-06 21:30:49, Gzip enabled