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));
^
|