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_15698270_5253.cpp:17:13: error: array bound is not an integer constant before ']' token
 bool rem[Max];//记录是否到过
             ^
0_0_15698270_5253.cpp:18:13: error: array bound is not an integer constant before ']' token
 int head[Max];
             ^
0_0_15698270_5253.cpp:19:11: error: array bound is not an integer constant before ']' token
 LL num[Max];
           ^
0_0_15698270_5253.cpp: In function 'void addedge(int, int, int)':
0_0_15698270_5253.cpp:23:6: error: no match for 'operator[]' (operand types are 'edge' and 'int')
  edge[tot].u=u;
      ^
0_0_15698270_5253.cpp:24:6: error: no match for 'operator[]' (operand types are 'edge' and 'int')
  edge[tot].v=v;
      ^
0_0_15698270_5253.cpp:25:6: error: no match for 'operator[]' (operand types are 'edge' and 'int')
  edge[tot].value=value;
      ^
0_0_15698270_5253.cpp:26:6: error: no match for 'operator[]' (operand types are 'edge' and 'int')
  edge[tot].next=head[u];
      ^
0_0_15698270_5253.cpp:26:17: error: 'head' was not declared in this scope
  edge[tot].next=head[u];
                 ^
0_0_15698270_5253.cpp: In function 'void dfs(int)':
0_0_15698270_5253.cpp:33:5: error: 'rem' was not declared in this scope
  if(rem[k])
     ^
0_0_15698270_5253.cpp:35:2: error: 'rem' was not declared in this scope
  rem[k]=1;
  ^
0_0_15698270_5253.cpp:36:2: error: 'num' was not declared in this scope
  num[k]=1;
  ^
0_0_15698270_5253.cpp:37:12: error: 'head' was not declared in this scope
  for(int i=head[k];i!=-1;i=edge[i].next)
            ^
0_0_15698270_5253.cpp:37:32: error: no match for 'operator[]' (operand types are 'edge' and 'int')
  for(int i=head[k];i!=-1;i=edge[i].next)
                                ^
0_0_15698270_5253.cpp:39:13: error: no match for 'operator[]' (operand types are 'edge' and 'int')
   int t=edge[i].v;
             ^
0_0_15698270_5253.cpp:43:33: error: no match for 'operator[]' (operand types are 'edge' and 'int')
   ans+=min(num[t],n-num[t])*edge[i].value;//在下面会加两次
                                 ^
0_0_15698270_5253.cpp: In function 'int main()':
0_0_15698270_5253.cpp:57:10: error: 'head' was not declared in this scope
   memset(head,-1,sizeof head);
          ^
0_0_15698270_5253.cpp:58:10: error: 'rem' was not declared in this scope
   memset(rem,0,sizeof rem);//初始化
          ^
0_0_15698270_5253.cpp:59:14: error: '$n' was not declared in this scope
   scanf("%d",$n);
              ^


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-22 23:40:34, Gzip enabled