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_20830421_17375.cpp:3:1: error: 'define' does not name a type
 define N 105
 ^
0_0_20830421_17375.cpp:6:3: error: 'edge' does not name a type
  }edge[2*N];
   ^
0_0_20830421_17375.cpp:7:11: error: 'N' was not declared in this scope
  int head[N],tol,visit[N],ans[N],bug[N],n,m,dp[N][N],f[N][N];
           ^
0_0_20830421_17375.cpp:7:24: error: 'N' was not declared in this scope
  int head[N],tol,visit[N],ans[N],bug[N],n,m,dp[N][N],f[N][N];
                        ^
0_0_20830421_17375.cpp:7:31: error: 'N' was not declared in this scope
  int head[N],tol,visit[N],ans[N],bug[N],n,m,dp[N][N],f[N][N];
                               ^
0_0_20830421_17375.cpp:7:38: error: 'N' was not declared in this scope
  int head[N],tol,visit[N],ans[N],bug[N],n,m,dp[N][N],f[N][N];
                                      ^
0_0_20830421_17375.cpp:7:48: error: 'N' was not declared in this scope
  int head[N],tol,visit[N],ans[N],bug[N],n,m,dp[N][N],f[N][N];
                                                ^
0_0_20830421_17375.cpp:7:51: error: 'N' was not declared in this scope
  int head[N],tol,visit[N],ans[N],bug[N],n,m,dp[N][N],f[N][N];
                                                   ^
0_0_20830421_17375.cpp:7:56: error: 'N' was not declared in this scope
  int head[N],tol,visit[N],ans[N],bug[N],n,m,dp[N][N],f[N][N];
                                                        ^
0_0_20830421_17375.cpp:7:59: error: 'N' was not declared in this scope
  int head[N],tol,visit[N],ans[N],bug[N],n,m,dp[N][N],f[N][N];
                                                           ^
0_0_20830421_17375.cpp: In function 'void add(int, int)':
0_0_20830421_17375.cpp:10:5: error: 'edge' was not declared in this scope
     edge[tol].from=a;edge[tol].to=b;edge[tol].next=head[a];head[a]=tol++;
     ^
0_0_20830421_17375.cpp:10:52: error: 'head' was not declared in this scope
     edge[tol].from=a;edge[tol].to=b;edge[tol].next=head[a];head[a]=tol++;
                                                    ^
0_0_20830421_17375.cpp: In function 'void dfs(int)':
0_0_20830421_17375.cpp:19:6: error: 'visit' was not declared in this scope
      visit[u]=1;
      ^
0_0_20830421_17375.cpp:20:12: error: 'head' was not declared in this scope
      for(i=head[u];i!=-1;i=edge[i].next)
            ^
0_0_20830421_17375.cpp:20:28: error: 'edge' was not declared in this scope
      for(i=head[u];i!=-1;i=edge[i].next)
                            ^
0_0_20830421_17375.cpp:30:22: error: 'f' was not declared in this scope
                      f[u][k]=max(f[u][k],f[u][k-j]+dp[r][j]);
                      ^
0_0_20830421_17375.cpp:30:52: error: 'dp' was not declared in this scope
                      f[u][k]=max(f[u][k],f[u][k-j]+dp[r][j]);
                                                    ^
0_0_20830421_17375.cpp:35:10: error: 'ans' was not declared in this scope
      tt=(ans[u]+19)/20;
          ^
0_0_20830421_17375.cpp:37:10: error: 'dp' was not declared in this scope
          dp[u][j]=f[u][j-tt]+bug[u];
          ^
0_0_20830421_17375.cpp:37:19: error: 'f' was not declared in this scope
          dp[u][j]=f[u][j-tt]+bug[u];
                   ^
0_0_20830421_17375.cpp:37:30: error: 'bug' was not declared in this scope
          dp[u][j]=f[u][j-tt]+bug[u];
                              ^
0_0_20830421_17375.cpp: In function 'int main()':
0_0_20830421_17375.cpp:46:28: error: 'ans' was not declared in this scope
              scanf("%d%d",&ans[i],&bug[i]);
                            ^
0_0_20830421_17375.cpp:46:36: error: 'bug' was not declared in this scope
              scanf("%d%d",&ans[i],&bug[i]);
                                    ^
0_0_20830421_17375.cpp:48:17: error: 'head' was not declared in this scope
          memset(head,-1,sizeof(head));
                 ^
0_0_20830421_17375.cpp:55:17: error: 'visit' was not declared in this scope
          memset(visit,0,sizeof(visit));
                 ^
0_0_20830421_17375.cpp:56:17: error: 'dp' was not declared in this scope
          memset(dp,0,sizeof(dp));
                 ^
0_0_20830421_17375.cpp:57:21: error: 'f' was not declared in this scope
              memset(f,0,sizeof(f));
                     ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-13 02:44:22, Gzip enabled