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_39480722_1443.cpp:1:10: error: 'maxn' was not declared in this scope
    1 | int head[maxn],ver[maxn],nxt[maxn],edge[maxn];
      |          ^~~~
0_0_39480722_1443.cpp:1:20: error: 'maxn' was not declared in this scope
    1 | int head[maxn],ver[maxn],nxt[maxn],edge[maxn];
      |                    ^~~~
0_0_39480722_1443.cpp:1:30: error: 'maxn' was not declared in this scope
    1 | int head[maxn],ver[maxn],nxt[maxn],edge[maxn];
      |                              ^~~~
0_0_39480722_1443.cpp:1:41: error: 'maxn' was not declared in this scope
    1 | int head[maxn],ver[maxn],nxt[maxn],edge[maxn];
      |                                         ^~~~
0_0_39480722_1443.cpp:3:1: error: 'll' does not name a type
    3 | ll f[maxn][3];
      | ^~
0_0_39480722_1443.cpp:4:8: error: 'maxn' was not declared in this scope
    4 | int rx[maxn];
      |        ^~~~
0_0_39480722_1443.cpp: In function 'void dfs1(int, int)':
0_0_39480722_1443.cpp:8:15: error: 'head' was not declared in this scope
    8 |     for(int i=head[x]; i; i=nxt[i])
      |               ^~~~
0_0_39480722_1443.cpp:8:29: error: 'nxt' was not declared in this scope
    8 |     for(int i=head[x]; i; i=nxt[i])
      |                             ^~~
0_0_39480722_1443.cpp:10:15: error: 'ver' was not declared in this scope
   10 |         int y=ver[i];
      |               ^~~
0_0_39480722_1443.cpp:11:15: error: 'edge' was not declared in this scope
   11 |         int w=edge[i];
      |               ^~~~
0_0_39480722_1443.cpp:14:12: error: 'f' was not declared in this scope
   14 |         if(f[x][0]<=f[y][0]+w)
      |            ^
0_0_39480722_1443.cpp:18:13: error: 'rx' was not declared in this scope; did you mean 'x'?
   18 |             rx[x]=y;
      |             ^~
      |             x
0_0_39480722_1443.cpp: In function 'void dfs2(int, int)':
0_0_39480722_1443.cpp:29:15: error: 'head' was not declared in this scope
   29 |     for(int i=head[x]; i; i=nxt[i])
      |               ^~~~
0_0_39480722_1443.cpp:29:29: error: 'nxt' was not declared in this scope
   29 |     for(int i=head[x]; i; i=nxt[i])
      |                             ^~~
0_0_39480722_1443.cpp:31:15: error: 'ver' was not declared in this scope
   31 |         int y=ver[i];
      |               ^~~
0_0_39480722_1443.cpp:33:15: error: 'edge' was not declared in this scope
   33 |         int w=edge[i];
      |               ^~~~
0_0_39480722_1443.cpp:34:12: error: 'rx' was not declared in this scope; did you mean 'x'?
   34 |         if(rx[x]==y)
      |            ^~
      |            x
0_0_39480722_1443.cpp:35:13: error: 'f' was not declared in this scope
   35 |             f[y][2]=max(f[x][1]+w,f[x][2]+w);
      |             ^
0_0_39480722_1443.cpp:35:21: error: 'max' was not declared in this scope
   35 |             f[y][2]=max(f[x][1]+w,f[x][2]+w);
      |                     ^~~
0_0_39480722_1443.cpp:37:13: error: 'f' was not declared in this scope
   37 |             f[y][2]=max(f[x][0]+w,f[x][2]+w);
      |             ^
0_0_39480722_1443.cpp:37:21: error: 'max' was not declared in this scope
   37 |             f[y][2]=max(f[x][0]+w,f[x][2]+w);
      |                     ^~~


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-12-04 07:13:28, Gzip enabled